package com.example.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class emp implements Comparable<emp>{
    private String id;
    private  String name;
    private String sum;
    private double price;

    @Override
    public int compareTo(emp o) {
        return this.id.compareTo(o.getId());
    }
}
